﻿@model IEnumerable<MvcCreditoHipotecario.Models.ReniecPersona>

@{
    ViewBag.Title = "RENIEC";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>RENIEC</h2>
@using (Ajax.BeginForm(new AjaxOptions 
    { InsertionMode = InsertionMode.Replace, UpdateTargetId = "myGrid" }))
{
    <fieldset>
        <legend>Busqueda de personas RENIEC</legend>
        <br />

        <div>
            Ingrese el número de Docuemnto:
        </div>
            <input type="text" id="Documento" name="Documento" /> 
        <p>
            <input type="submit" value="Buscar" />
        </p>
    </fieldset>
}

<div id="myGrid">
    @Html.Partial("_gridReniec", Model)
</div>